package hello;

import org.springframework.web.bind.annotation.RestController;

import com.sirap.basic.util.RandomUtil;

import org.springframework.web.bind.annotation.RequestMapping;

@RestController
public class HelloController {
    
    @RequestMapping("/h1")
    public String index() {
        return "Greetings from Spring Boot!";
    }
    
    @RequestMapping("/h2")
    public String random() {
        return "Greetings from !" + RandomUtil.digits(19);
    }
}
